package com.rockcent.service;

import com.rockcent.mall.lib.domain.Merchant;
import com.rockcent.mall.lib.domain.MerchantFund;
import com.rockcent.mall.lib.domain.MerchantFundFlow;
import com.rockcent.mall.lib.domain.MerchantRechargeFlow;

/**
 * Created by zhangjh on 2017/3/30.
 */
public interface MerchantFundSrv {

    /**
     * 充值
     *
     * @param rechargeFlow
     */
    void recharge(MerchantRechargeFlow rechargeFlow);


    /**
     * 扣费
     *
     * @param fundFlow
     */
    void deduction(MerchantFundFlow fundFlow);

    /**
     * 查询商户资金表
     * @param merchantId
     * @return
     */
    MerchantFund findOne(Long merchantId);

    MerchantFund save(MerchantFund merchantFund);
}
